package com.promfy.timetable;

import com.promfy.timetable.ui.CourseConfigView;
import com.promfy.timetable.ui.MyViewGroup;
import com.promfy.timetable.ui.OneClassView;
import com.promfy.timetable.ui.ReminderListView;
import com.promfy.timetable.ui.TimetableView;

import android.app.Activity;
import android.graphics.Color;
import android.os.Bundle;
import android.view.ViewGroup.LayoutParams;
import android.widget.FrameLayout;
import android.widget.TableLayout;
import android.widget.TextView;

public class TimetableActivity extends Activity {
	private FrameLayout frame;

	/** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        frame = (FrameLayout)findViewById(R.id.frame);
//        TimetableView tv = new TimetableView(this);
//        frame.addView(tv); 
//        OneClassView ocv = new OneClassView(this);
//        ocv.setClassDetail("�ߵ���ѧaaaaaaaaaaaaaavvvvvvvvvvvffffffffffffffff", "S2-102", "С��");
//        frame.addView(ocv, new LayoutParams(200, 200));
//        CourseConfigView ccv = new CourseConfigView(this);
//        frame.addView(ccv);
//        ReminderListView rlv = new ReminderListView(this);
//        frame.addView(rlv);
        MyViewGroup mvg = new MyViewGroup(this);
//    	TextView tv = new TextView(this);
//		tv.setBackgroundColor(Color.RED);
//		mvg.addView(tv, new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));
//		
//		TextView tv1 = new TextView(this);
//		tv1.setBackgroundColor(Color.YELLOW);
//		mvg.addView(tv1, new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));
//
//		TextView tv11 = new TextView(this);
//		tv11.setBackgroundColor(Color.GREEN);
//		mvg.addView(tv11, new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));
//		mvg.fling = true;
//		mvg.scrollToScreen(1);
//		mvg.postInvalidate();
        frame.addView(mvg, new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));
    }
}  